package com.qxy.hgz.rank.model;

/**
 * 枚举视频类型
 */
public enum VideoType {
    MOVIE(1),TV_SERIES(2),VARIETY(3);
    private final int value;
    VideoType(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static VideoType parseType(int value) {
        VideoType res = null;
        if (value == 1) {
            res = MOVIE;
        }else if (value == 2) {
            res = TV_SERIES;
        }else if (value == 3) {
            res = VARIETY;
        }
        return res;
    }
}
